#!/bin/bash
HOME=`pwd`
while getopts :f: opt
do
case $opt in
  f)HOME="$OPTARG";;
  \?)
  echo "用法：写入部署环境根目录不带'/'";;
#  p)PORT="$OPTARG"
#  echo "Your web port is $PORT";;
esac
done
mvn -f $HOME/pom.xml clean compile exec:java -Dexec.mainClass="com.shuimin.shop.App" -Dexec.args="10000" -Dfile.encoding="utf8"
